package com.cnnp.dip.api.client;

import java.util.List;
import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "grafanaSearchApi", url = "${grafana.base-url}", path = "/api/search")
public interface GrafanaSearchApi {

    @GetMapping
    List<Map<String, Object>> searchDashboards(
        @RequestParam("type") String type
    );
}
